@extends('layouts.app')

@section('content')
<example-component></example-component>
<hr>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">标签</div>
                @if (session('noPermission'))
                <p class="alert alert-danger">{{ session('noPermissionMessage') }}</p>
                @endif
                <div class="card-body">
                    <p><a href="/tags">标签列表</a></p>
                    <p><a href="/tags/create">创建新标签</a></p>
                    <p><a href="/tags/{id}/edit">PUT更新标签</a></p>
                    <p><a href="/tags/{id}">DELETE更新标签</a></p>
                </div>
            </div>
            <div class="card" style="">
                <ul class="list-group list-group-flush">
                    @foreach ($tags as $tag)
                        <li class="list-group-item">
                            <p>名称：{{ $tag->name }} <span><a href="/tags/{{ $tag->id }}">修改</a></span></p>
                            <div>描述：{{ $tag->description }}</div>
                        </li>
                    @endforeach
                </ul>
            </div>

            <hr>

            <div class="card">
                <div class="card-header">分类</div>

                <div class="card-body">
                    <p><a href="/categories">分类列表</a></p>
                </div>
            </div>

            <div class="card">
                <div class="card-header">标签</div>

                <div class="card-body">
                    <p><a href="/tags">标签列表</a></p>
                </div>
            </div>

            <div class="card">
                <div class="card-header">文章</div>

                <div class="card-body">
                    <p><a href="/posts">文章列表</a></p>
                </div>
            </div>

            <div class="card">
                <div class="card-header">评论</div>

                <div class="card-body">
                    <p><a href="/comments">评论列表</a></p>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
